<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Member_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-member_id" data-rule="required" data-source="member/index" class="form-control selectpage" name="row[member_id]" type="text" value="{$row.member_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Member_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-member_name" data-rule="required" class="form-control" name="row[member_name]" type="text" value="{$row.member_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rent_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rent_id" data-rule="required" data-source="rent/index" class="form-control selectpage" name="row[rent_id]" type="text" value="{$row.rent_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rent_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rent_name" data-rule="required" class="form-control" name="row[rent_name]" type="text" value="{$row.rent_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_number" class="form-control" name="row[card_number]" type="text" value="{$row.card_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rent_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rent_price" data-rule="required" class="form-control" name="row[rent_price]" type="number" value="{$row.rent_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('If_rent')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-if_rent" data-rule="required" class="form-control selectpicker" name="row[if_rent]">
                {foreach name="ifRentList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.if_rent"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cash_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cash_price" data-rule="required" class="form-control" name="row[cash_price]" type="number" value="{$row.cash_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('If_cash')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-if_cash" data-rule="required" class="form-control selectpicker" name="row[if_cash]">
                {foreach name="ifCashList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.if_cash"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_price" data-rule="required" class="form-control" name="row[total_price]" type="number" value="{$row.total_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_name" class="form-control" name="row[company_name]" type="text" value="{$row.company_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shareholder_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shareholder_id" data-rule="required" data-source="shareholder/index" class="form-control selectpage" name="row[shareholder_id]" type="text" value="{$row.shareholder_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shareholder_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shareholder_name" class="form-control" name="row[shareholder_name]" type="text" value="{$row.shareholder_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Station_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-station_id" data-rule="required" data-source="station/index" class="form-control selectpage" name="row[station_id]" type="text" value="{$row.station_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="orderStatusList" item="vo"}
            <label for="row[order_status]-{$key}"><input id="row[order_status]-{$key}" name="row[order_status]" type="radio" value="{$key}" {in name="key" value="$row.order_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payment_code')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-payment_code" data-rule="required" class="form-control selectpicker" name="row[payment_code]">
                {foreach name="paymentCodeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.payment_code"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:$row.start_time?datetime($row.start_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cash_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cash_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[cash_time]" type="text" value="{:$row.cash_time?datetime($row.cash_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Return_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-return_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[return_time]" type="text" value="{:$row.return_time?datetime($row.return_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expire_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[expire_time]" type="text" value="{:$row.expire_time?datetime($row.expire_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('If_deferred')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-if_deferred" data-rule="required" class="form-control selectpicker" name="row[if_deferred]">
                {foreach name="ifDeferredList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.if_deferred"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cash_deferred')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-cash_deferred" data-rule="required" class="form-control selectpicker" name="row[cash_deferred]">
                {foreach name="cashDeferredList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.cash_deferred"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_id" data-rule="required" data-source="sell/index" class="form-control selectpage" name="row[sell_id]" type="text" value="{$row.sell_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_phone" class="form-control" name="row[sell_phone]" type="text" value="{$row.sell_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_name" class="form-control" name="row[sell_name]" type="text" value="{$row.sell_name|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
